
<h1><?php echo $title;?></h1>

<?php echo anchor('album/sary/asehoy/' . $photo['sid'], __("Back to the photo", "album")); ?>
<div class="navigation">
<?php echo $pager ?>

</div>
<div class="comment-imagebox">		
<img src="<?php echo $photo['s'] ?>" />	
</div>

<?php if ($rows) : ?>
<h1><?php echo __("Comments", "album") ?></h1>
<div class="comments">
<?php foreach( $rows as $h) : ?>
<img src="http://avatar.serasera.org/<?php echo md5($h['username']) ?>.jpg" width="48" height="48" class="thumbnail" />
<a href="<?php echo site_url('album/user/' . $h['username']) ?>"><?php echo $h['username'] ?></a> <?php echo date("d/m/Y H:i:s", $h['date']) ?><br/>
<?php echo nl2br(strip_tags($h['comment'], '<b><i>')) ?>
<div class="clear"></div>
<?php endforeach; ?>
</div>
<?php endif; ?>
<div class="navigation">
<?php echo $pager ?>

</div>

<h1><?php echo __("Add a comment", "album") ?></h1>

<?php if ($this->user->logged_in) :?>
<form  enctype="multipart/form-data" class="edit" action="<?php echo site_url('album/hevitra/ampidiro')?>" method="post" accept-charset="utf-8">
<input type='hidden' name='sid' value='<?php echo $photo['sid'] ?>' />
		<label for="comment"><?php echo __("Comment:", $this->template['module'])?></label>
		<textarea name="comment" class="input-textarea" style="height: 100px;"></textarea><br />
		<label for="notify"><?php echo __("Notify me:", $this->template['module'])?></label>
		<input type="checkbox" name="notify" value="1" checked /><br />
		<input type="submit" name="submit" value="<?php echo __("Save", $this->template['module'])?>" class="input-submit" />
		<a href="<?php echo site_url( $this->session->userdata("last_uri") )?>" class="input-submit"><?php echo __("Cancel", $this->template['module'])?></a>

</form>
<?php else: ?>
<a id="login" href="<?php echo site_url('member/login') ?>"><?php echo __("Please sign in", "album") ?></a>

<?php endif; ?>
</div>
